package cn.monkey.data.entity;

import cn.monkey.data.entity.datascope.DatascopeDefinition;
import cn.monkey.data.entity.datascope.DatascopeKey;
import lombok.Data;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

@Data
public class UserSession implements Serializable {

    public static final String KEY = "user_session";

    private String uid;
    private String token;
    private String username;

    /**
     * key: 组织id， value 部门
     */
    private Map<String, Collection<String>> groupMap;


    /**
     * 数据域 KEY
     */
    private Map<DatascopeKey, DatascopeDefinition> datascopeMap;
}
